<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>点击穿透 </title>
    <script src="http://47.104.209.44/base/js/jquery-1.10.1.min.js"></script>  

    <style>
        .mask{
            width: 100%;
            height:100vh;
            background: rgba(0,0,0,0.5);
            color:#fff;
            text-align: center;
            line-height: 100vh;
            position: fixed;
            top:0;
            left:0;
        }
        .box{
            width:100%;
            height:400px;
            background: yellow;
            display: block;
        }
    </style>
</head>
<body>
    <div id="mask" class="mask">
        我是遮罩层 点击我关闭 
    </div>
    <a class="box" href="http://www.baidu.com">
        我是一个盒子,点击我进入百度 
    </a>

    <script>
        // 混合 touch 和 click 事件  
        
        $("#mask").on("touchstart",function(){
            $(this).hide()
        })

        // $('.box').on("click",function(){
        //     $(this).css("background",'red')
        // })
    </script>
</body>
</html>